home *** CD-ROM | disk | FTP | other *** search
- Path: polo.iquest.com!news
- From: gbrown@colsa.com (Greg Brown)
- Newsgroups: comp.lang.c
- Subject: RPC Question
- Date: 12 Jan 1996 18:15:22 GMT
- Organization: Colsa
- Distribution: world
- Message-ID: <4d68fq$p9b@polo.iquest.com>
- NNTP-Posting-Host: 199.172.89.47
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.99.4
-
- Here's a question for you RPC programmers out there. Let's say that
- I am trying to write an RPC client/server to read password file
- entries on remote systems. The .x file might look something like this:
-
- union passwd_res switch(int errno)
- {
- case 0:
- struct passwd *dptr;
- default:
- void;
- };
-
- program PASSWDPROG
- {
- version PASSWDVERS
- {
- int SETPWENT(void) = 1;
- int SETPWFILE(string) = 2;
- passwd_res GETPWENT(void) = 3;
- int ENDPWENT(void) = 4;
- } = 1;
- } = 76;
-
- No problems so far. But let's say that I wanted to add another
- function, like fgetpwent, which takes a FILE * as it's argument.
- What would the syntax be for adding this entry to the program/version
- structure above? ie,
-
- passwd_res FGETPWENT(??????) = 5;
-
- Thanks in advance!
-
- Greg Brown (gbrown@colsa.iquest.com)
-
-